import request from '@/utils/request'

// 查询城市列列表
export function listTbcity(query) {
  return request({
    url: '/apartment/tbcity/list',
    method: 'get',
    params: query
  })
}

// 查询城市列详细
export function getTbcity(id) {
  return request({
    url: '/apartment/tbcity/' + id,
    method: 'get'
  })
}

// 新增城市列
export function addTbcity(data) {
  return request({
    url: '/apartment/tbcity',
    method: 'post',
    data: data
  })
}

// 修改城市列
export function updateTbcity(data) {
  return request({
    url: '/apartment/tbcity',
    method: 'put',
    data: data
  })
}

// 删除城市列
export function delTbcity(id) {
  return request({
    url: '/apartment/tbcity/' + id,
    method: 'delete'
  })
}
